package userctr

import (
	"auusoft/AuuWiki/Models"
	"auusoft/AuuWiki/controllers"
	//"fmt"
)

type UserDeleteController struct {
	controllers.RootController
}

func (this *UserDeleteController) Get() {
	this.CheckSession()
	this.Ctx.Request.ParseForm()
	username := this.Ctx.Request.Form.Get("usr")
	//fmt.Println(username)
	models.DeleteUserInfoByUsername(username)
	this.Ctx.Redirect(302, "/userctr/userlist")
}
